﻿@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId = "OnLoadingSpan",
    UpdateTargetId = "dialogbox",
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "Post",
    OnComplete="",
    OnFailure = "OnSiteError"
}))
{
    <fieldset>
        <legend>选择患者</legend>
        <table class="width noborder" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <div class="editor-label">
                        姓名</div>
                    <div class="editor-field">@Html.TextBox("Title")</div>
                </td>
                <td>
                    <div class="editor-label">
                        手机号码</div>
                    <div class="editor-field">@Html.TextBox("MobileAlias")</div>
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" name="submit" value="选择" />
        </p>
    </fieldset>
    if (SiteUser.IsDoctorDepManager)
    {
        <fieldset>
            <legend>重新录入患者</legend>
            <p>            
                <input type="submit" name="submit" value="录入" />
            </p>
        </fieldset>
    }
}